<html>
<head><meta charset="utf-8"><title>case insensitive fix · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html">case insensitive fix</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231952929"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/231952929" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#231952929">(Mar 26 2021 at 12:05)</a>:</h4>
<p>I just thought about a solution that might fix the name conflicts and wouldn't require to change the URL pattern we're using:</p>
<p>We could check for all the items we'll generate and when there is a conflict, still generate a file which would contain the headers and only a <code>&lt;script&gt;</code> tag which would load the correct file based on the URL in the current HTML directly.</p>
<p>What do you think?</p>



<a name="231964248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/231964248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#231964248">(Mar 26 2021 at 13:32)</a>:</h4>
<p>Hmm I don't think that would actually help - the redirect file could overwrite the one with different casing or vice versa</p>



<a name="232012545"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232012545" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232012545">(Mar 26 2021 at 18:33)</a>:</h4>
<p>no I mean, before starting generating files, we check if some would conflict in case insensitive scenario. For those conflicts, we generate a html file which contains a <code>&lt;script&gt;</code> which will load the correct html depending on the URL</p>



<a name="232012571"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232012571" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232012571">(Mar 26 2021 at 18:33)</a>:</h4>
<p>Is it more clear?</p>



<a name="232014098"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232014098" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232014098">(Mar 26 2021 at 18:45)</a>:</h4>
<p>oh I see! I like that :)</p>



<a name="232014159"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232014159" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232014159">(Mar 26 2021 at 18:46)</a>:</h4>
<p>I think all the case-insensitive files are still case-preserving, you'd need to test it though</p>



<a name="232017970"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232017970" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232017970">(Mar 26 2021 at 19:15)</a>:</h4>
<p>At least on windows, it opens the same file, whatever the case. So we should be fine.</p>



<a name="232043571"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/case%20insensitive%20fix/near/232043571" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/case.20insensitive.20fix.html#232043571">(Mar 26 2021 at 23:05)</a>:</h4>
<p>This seems like a neat idea, but I wonder if there are some browsers that have case-insensitive URLs? Maybe we don't worry about that, but I thought it's worth bringing up just in case.</p>
<p>Also, I'd rather avoid using more JS. But I guess this seems like the best solution so far :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>